﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Pigmalion.BusinessEntities;
using Pigmalion.BusinessLogic;

namespace Pigmalion.Presenter.PedidoPresenter
{
   public class PedidoMttoPresenter
    {
       private readonly IPedidoMttoPresenter _view;
       private IClienteBL clienteFactory;
       private IProductoBL productoFactory;

       public PedidoMttoPresenter(IPedidoMttoPresenter view)
       {
           _view = view;
           clienteFactory = new ClienteBL();
           productoFactory = new ProductoBL(); 
       }

       public Cliente GetCliente(string rucDni)
       {
           return clienteFactory.GetOneFromClienteByRucDni(rucDni);
       }

       public Producto GetProducto(string codigo)
       {
           return productoFactory.GetFromProductoByCodigo(codigo);
       }
    }
}
